package xsxdjc
public class SimpleBranch{
	static public class ClasOption implements hc.bre.cmn.IListOption{
		int id;
		String code;
		String name;
	};
	public static final ClasOption bachor = new ClasOption(id:1, code:'bachor', name:'本科');
	public static final ClasOption master = new ClasOption(id:1, code:'master', name:'硕士');
	public static final ClasOption no = new ClasOption(id:0, code:'no', name:'否');
	public static Closure rule = {_context_ ->
		hc.bre.clas.ClasResult _result_ = new hc.bre.clas.ClasResult();
		_result_.rname = '逻辑分支分类';
		_result_.rpath = 'xsxdjc/SimpleBranch';
		
		def _rangeVariable_ = {
			if(基本信息.教育=='本科'){
			    return 1;
			}else if(基本信息.教育=='硕士'){
			    return 2;
			}else {
			    return 3;
			}
		}.call();
		switch(_rangeVariable_){
			case 1 :
				_result_.clas = SimpleBranch.bachor;
				break;
			case 2 :
				_result_.clas = SimpleBranch.master;
				break;
			default :
				_result_.clas = SimpleBranch.no;
				break;
		};
		
		return _result_;
	};
};